package com.gm.commonlib.network;

public enum HttpResultCode {
    REQUEST_SUCCESS(0,"网络请求成功"),
    TOKEN_ERROR(70000,"登录失效，请重新登录"),

    USER_NOT_EXIT(2001003,"登录失效，请重新登录"),//token不对时候出现，比如安装测试版本，在覆盖正式版本
    TENANT_NOT_EXIT(2001007,"登录失效，请重新登录"), //租户不存在。

    OTHER_LOGIN(-450,"已在其它设备登录，请重新登录");
    private final int code;
    private final String des;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return des;
    }

    HttpResultCode(int code, String des) {
        this.code = code;
        this.des = des;
    }

    public interface ScanListener {
        void onScaned(HttpResultCode resultCode);
    }
}
